package shapes;

public  class Circle extends Shape{
	
	public double radius;
	
	public double getRadius(){
		return radius;
	}

	public void setRadius(double radius) {
		this.radius = radius;
	}
	public Circle(double radius){
		this.radius = radius;
	}
	
	
	public double getArea(){
		return Math.PI*radius*radius;
	}

	@Override
	public String toString() {
		return "Circle [radius=" + radius + "]";
	}

	@Override
	public double getPerimeter() {
		
		return 2*Math.PI*radius;
	}
	
	
}
